package cn.cqie.frame.bo.add;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 谢一弘
 * @date 2021/9/28  8:46
 */
@Data
@ApiModel("新增部门")
public class AddDeptBo {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @NotNull(message = "部门代码不能为空")
    @ApiModelProperty(value = "部门代码")
    private String code;
    @NotNull(message = "部门名称不能为空")
    @ApiModelProperty(value = "部门名称")
    private String name;
    @NotNull(message = "排序吗不能为空")
    @ApiModelProperty(value = "排序吗")
    private Integer sortCode;
    @NotNull(message = "上级部门id不能为空")
    @ApiModelProperty(value = "上级部门id")
    private Integer parentId;
}
